package com.eshealthy.service;

import com.eshealthy.entity.*;

import java.io.IOException;
import java.util.List;

public interface AdminService {
    List<Doctor> findAllDoctor( Integer page,Integer rows);
    List<Patient> findAllPatient(Integer page,Integer rows);
    List<Department> findAllDepartment(Integer page,Integer rows);
    Manager login(Manager manager);
    Integer findTotalsDoctor();
    Integer findTotalsPatient();
    void deleteDoctor(String id);
    void deletePatient(String id);
    void saveDoctor(Doctor doctor);
    Doctor findDoctor(String id);
    void registerLibrary(Library library) throws IOException;
    void savePatient(Patient patient);

    Patient findPatient(String id);

    void saveDepartment(Department department);

    Department findDepartment(String id);

    void deleteDepartment(String id);

    void registerDepartment(Department department);

    Integer findTotalsDepartment();

    void deleteDoctorArea(String id);

    List<Drug> findAllDrug(Integer page, Integer rows) throws IOException;

    long findTotalsDrug() throws IOException;

    void registerDrug(Drug drug) throws IOException;

    List<MedicalDevice> findAllDevice(Integer page, Integer rows) throws IOException;

    long findTotalsDevice() throws IOException;

    void registerDevice(MedicalDevice device) throws IOException;

    void register(Manager manager);

    void registerArea(Integer area);
}
